<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="bookmark" href="/favicon.ico"/>
    <title>Document</title>
</head>
<body>
    <div>web worker test</div>
</body>
<script>
    if(typeof(Worker)!=="undefined"){
        console.log('yes')
        var myWorker = new Worker('./worker.js')
        myWorker.onmessage = function(e) {
            console.log(e)
            // console.log('Message received from worker');
        }
    }else{
        console.log('no')
    }
    // console.log('222')
</script>
</html>